$("#creation_form_container").submit(function(event) {

	event.preventDefault(); 

	var url = $("creation_form_container").attr("action");
    var name = $("#creation_form_container").find('input[name="name"]').val();
    var firstname = $("#creation_form_container").find('input[name="firstname"]').val();
    var emailUser = $("#creation_form_container").find('input[name="email_user"]').val();
    var emailDomain = $("#creation_form_container").find('input[name="email_domain"]').val();
    var birthDateMonth = $("#creation_form_container").find('input[name="birth_date_month"]').val();
    var birthDateDay = $("#creation_form_container").find('input[name="birth_date_day"]').val();
    var birthDateYear = $("#creation_form_container").find('input[name="birth_date_year"]').val();
    var billingAddressNumber = $("#creation_form_container").find('input[name="billing_address_number"]').val();
    var billingAddressStreet = $("#creation_form_container").find('input[name="billing_address_street"]').val();
    var billingAddressZipCode = $("#creation_form_container").find('input[name="billing_address_zip_code"]').val();
    var billingAddressCity = $("#creation_form_container").find('input[name="billing_address_city"]').val();
    var shippingAddressNumber = $("#creation_form_container").find('input[name="shipping_address_number"]').val();
    var shippingAddressStreet = $("#creation_form_container").find('input[name="shipping_address_street"]').val();
    var shippingAddressZipCode = $("#creation_form_container").find('input[name="shipping_address_zip_code"]').val();
    var shippingAddressCity = $("#creation_form_container").find('input[name="shipping_address_city"]').val();
        
    $.post( "/applications/crud/index.jsp?action=create", { 
    				name: name,
    				firstname: firstname,
    				email_user: emailUser,
    				email_domain: emailDomain,
    				birth_date_month: birthDateMonth,
    				birth_date_day: birthDateDay,
    				birth_date_year: birthDateYear,
    				billing_address_number: billingAddressNumber,
    				billing_address_street: billingAddressStreet,
    				billing_address_zip_code: billingAddressZipCode,
    				billing_address_city: billingAddressCity,
    				shipping_address_number: shippingAddressNumber,
    				shipping_address_street: shippingAddressStreet,
    				shipping_address_zip_code: shippingAddressZipCode,
    				shipping_address_city: shippingAddressCity
    			 },
      function( data ) {
                       	     	  
          $(".thumbnails").append(data); 
          $("#content").empty();
      }
    );
});